package com.dongjiantong.openplatform.annotations;

import com.dongjiantong.openplatform.core.DefaultPushPostHandle;
import com.dongjiantong.openplatform.core.PushPostHandle;
import org.springframework.web.bind.annotation.RequestMethod;

import java.lang.annotation.*;

/**
 * @author cao
 * @create 2017-12-13 下午7:02
 **/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface OpenMethod {
    String key();

    RequestMethod[] httpMethods() default {};

    String[] paramNames() default {};

    Class<? extends PushPostHandle> pushPostHandleClass() default DefaultPushPostHandle.class;
}
